<extend name="Base:base" />
<block name="title"><title>定点管理</title></block>
<block name="content">
<script type="text/javascript" src="__PUBLIC__/Js/account_manage.js"></script>
<link href = "__PUBLIC__/Css/index.css" type = "text/css" rel = "stylesheet"/>
	<div id="content" align="center">		
		<div id="user" >
			<p style="margin-left:-560px; font-size:20px; color:#1d353f; font-weight:bold;">定点列表</p>
			<div id='addBtn'><input type="button" value="添加定点" id="btn" onclick="javascript:window.location.href = '__CONTROLLER__/add';"></div>
			<hr width="700px"/>
			<table>
			<tr style="color:#1d353f;"><th>序号</th><th>定点名字</th><th>纬度</th><th>经度</th><th>所属</th><th>操作</th><tr>
			<foreach name="list" item="point">
			<tr>
				<td><if condition="($_GET['p'] eq 0)">{++$i}<else />{++$i + ($_GET['p']-1) * 7}</if></td>
				<td>{$point['name']}</td>
				<td>{$point['latitude']}</td>
				<td>{$point['longitude']}</td>
				<td>{$point['belong']}</td>
				<td>
					<a href="javascript:userDelete('__CONTROLLER__/delete','{$point['id']}')">
					<img src="__PUBLIC__/Img/delete.png" /></a></td>
			</tr>
			</foreach>	
			</table>
		</div>	
		<div id="count" align="center">共{$count}条</div>	
		<div id="page" align="center">{$page}</div>	
	</div>
</block>
